package uk.ac.glasgow.demosocs.impl;

import uk.ac.glasgow.demosocs.ReferendumVote;

/**
 * Represents a referendum vote which may be cast.
 * The vote can only consist of two options, either yes or no.
 *
 */

public class ReferendumVoteImpl implements ReferendumVote {

	private String option;
	private String votedBy;
	
	/**
	 * Constructor for a referendum.
	 * @param option - The option voted for, either yes or no.
	 */
	public ReferendumVoteImpl(String option){
		this.option = option;
	}
	
	public String getOption(){
		return option;
	}
	
	/**
	 * Returns the user which
	 * cast the vote.
	 * @return - String containing the user id.
	 */
	public String getVotedBy() {
		return votedBy;
	}

	public void setVotedBy(String votedBy) {
		this.votedBy = votedBy;
	}
	

}
